package file.day9_30;

import java.io.Serializable;
import java.util.Arrays;

public class Person implements Serializable {
    public static final long serialVersionUID = 1L;
    private String name,gender;
    private String[] otherInfo;
    private int age;

    public Person(String name, String gender, String[] otherInfo, int age) {
        this.name = name;
        this.gender = gender;
        this.otherInfo = otherInfo;
        this.age = age;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", gender='" + gender + '\'' +
                ", otherInfo=" + Arrays.toString(otherInfo) +
                ",age=" + age +
                '}';
    }
}
